home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / PInterfaces / OSEvents.p < prev    next >
Encoding:
Text File  |  1989-10-13  |  1.2 KB  |  56 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Tuesday, August 2, 1988 at 8:23 AM
  3.     OSEvents.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.     Copyright Apple Computer, Inc.    1985-1988
  7.     All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT OSEvents;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingOSEvents}
  21. {$SETC UsingOSEvents := 1}
  22.  
  23. {$I+}
  24. {$SETC OSEventsIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$IFC UNDEFINED UsingEvents}
  30. {$I $$Shell(PInterfaces)Events.p}
  31. {$ENDC}
  32. {$IFC UNDEFINED UsingOSUtils}
  33. {$I $$Shell(PInterfaces)OSUtils.p}
  34. {$ENDC}
  35. {$SETC UsingIncludes := OSEventsIncludes}
  36.  
  37. {TYPE}
  38.  
  39.  
  40. FUNCTION PostEvent(eventNum: INTEGER;eventMsg: LONGINT): OSErr;
  41. FUNCTION PPostEvent(eventCode: INTEGER;eventMsg: LONGINT;VAR qEl: EvQElPtr): OSErr;
  42. FUNCTION OSEventAvail(mask: INTEGER;VAR theEvent: EventRecord): BOOLEAN;
  43. FUNCTION GetOSEvent(mask: INTEGER;VAR theEvent: EventRecord): BOOLEAN;
  44. PROCEDURE FlushEvents(whichMask: INTEGER;stopMask: INTEGER);
  45.     INLINE $201F,$A032;
  46. PROCEDURE SetEventMask(theMask: INTEGER);
  47.     INLINE $31DF,$0144;
  48. FUNCTION GetEvQHdr: QHdrPtr;
  49.  
  50. {$ENDC}    { UsingOSEvents }
  51.  
  52. {$IFC NOT UsingIncludes}
  53.     END.
  54. {$ENDC}
  55.  
  56.